package com.rose.springbootthymeleaf.controller;

import com.rose.springbootthymeleaf.entry.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/hello")
    public String hello(Map<String, Object> map) {
        map.put("message", "fanfan");
        return "dashboard";
    }
}